package jgl.vajra.operator.part.mine.viewModel;

import java.util.Map;

import jgl.vajra.operator.bean.MyWalletBean;
import jgl.vajra.operator.part.mine.contract.MyWalletContract;
import jgl.vajra.operator.part.mine.model.MyWalletModel;
import jgl.vajra.operator.widget.mvvm.factory.CreateModel;
import jgl.vajra.operator.widget.retrofithelper.rxsubscriber.ProgressObserver;

@CreateModel(MyWalletModel.class)
public class MyWalletViewModel extends MyWalletContract.ViewModel{
    @Override
    public void getMyWalletData(Map<String, Object> map) {
        mModel.getMyWalletData(map).subscribe(new ProgressObserver<MyWalletBean>(true,this) {
            @Override
            public void _onNext(MyWalletBean data) {
                mView.returnMyWalletData(data);
            }
        });
    }
}
